import { Metadata } from './Metadata';
import { Templatespec } from './Templatespec';


export class AddonTemplate {
    public kind?: string;
    public apiVersion?: string;
    public metadata?: Metadata;
    public spec?: Templatespec;
    public constructor(kind?: string, apiVersion?: string, metadata?: Metadata, spec?: Templatespec) { 
        this['kind'] = kind;
        this['apiVersion'] = apiVersion;
        this['metadata'] = metadata;
        this['spec'] = spec;
    }
    public withKind(kind: string): AddonTemplate {
        this['kind'] = kind;
        return this;
    }
    public withApiVersion(apiVersion: string): AddonTemplate {
        this['apiVersion'] = apiVersion;
        return this;
    }
    public withMetadata(metadata: Metadata): AddonTemplate {
        this['metadata'] = metadata;
        return this;
    }
    public withSpec(spec: Templatespec): AddonTemplate {
        this['spec'] = spec;
        return this;
    }
}